package pers.xiaojun.boot.common.pojo;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 统一业务代码对象
 *
 * @author xiaojun
 * @since 2025-10-02
 */
@Data
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class BusinessCode {

    /**
     * 响应代码
     */
    private Integer code;

    /**
     * 代码描述
     */
    private String message;

    public static BusinessCode of(int code, String message) {
        return new BusinessCode(code, message);
    }


}
